home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 July
/
07_02.iso
/
software
/
xq-xsetup
/
files
/
setup.exe
/
{app}
/
plugins
/
XQ Active Desktop 1.xpl
< prev
next >
Wrap
Text File
|
2000-11-18
|
3KB
|
88 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="6"
"COUNT"="4"
"UIPATH"="Appearance\Desktop\Active Desktop"
"NAME"="Active Desktop Component Options"
"VERSION"="1.13"
"LANGUAGE"="VBScript"
"TEXT 1"="Enable Active Desktop Components"
"TEXT 2"="Enable adding Active Desktop Components"
"TEXT 3"="Enable deleting Active Desktop Components"
"TEXT 4"="Enable edit Active Desktop Components"
"DESCRIPTION 1"="This plugin allows you to change some settings for Active Desktop."
"DESCRIPTION 2"="NOTE: When all options are disabled, ActiveDesktop page is not shown in Display Options."
"AUTHOR"="Ojatex@aol.com"
"CONTACTURL"="http://members.aol.com/ojatex/"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
"COMMENT 2"="Does anybody outside of Redmond really use Active Desktop?"
'note: 0 = disable restriction, 1 = enable restriction
Sub Plugin_Initialize
i=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoComponents")
if i=0 or IsEmpty(i) then SetUIElement 1,true
i=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoAddingComponents")
if i=0 or IsEmpty(i) then SetUIElement 2,true
i=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoDeletingComponents")
if i=0 or IsEmpty(i) then SetUIElement 3,true
i=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoEditingComponents")
if i=0 or IsEmpty(i) then SetUIElement 4,true
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
b=GetUIElement(1)
if b=false then
Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoComponents","1",2)
else
Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoComponents","0",2)
end if
b=GetUIElement(2)
if b=false then
Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoAddingComponents","1",2)
else
Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoAddingComponents","0",2)
end if
b=GetUIElement(3)
if b=false then
Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoDeletingComponents","1",2)
else
Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoDeletingComponents","0",2)
end if
b=GetUIElement(4)
if b=false then
Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoEditingComponents","1",2)
else
Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoEditingComponents","0",2)
end if
Call IndicateSettingChange()
End Sub
Sub Plugin_Terminate
End Sub